package cn.bxshey.general.enums;

import lombok.Data;

/**
 * @作者：不想说话而已
 * @Date：2023/11/28 9:33
 * 统一状态返回码
 */


public enum ResultEnum {
    ERROR(404,"失败"),
    SUCCESS(200,"成功"),
    EXCEPTION(503,"系统异常"),
    SYSTEM_BUSY(504,"系统繁忙,请稍后再试"),
    ERROR_LOGIN(413,"尚未认证"),
    VERIFICATION_EXPIRES(416,"身份验证过期"),
    ERROR_AUTH(414,"认证失败"),
    ERROR_WX_AUTH(514,"微信授权失败"),
    ERROR_PERMISSION(513,"暂无此权限"),
    ERROR_INVENTORY(1011,"库存不足"),
    ERROR_COUPONS_GET(2011,"优惠卷领取失败"),
    ERROR_COUPONS(2010,"优惠卷不存在"),
    ERROR_ACTIVITY(3010,"活动异常"),
    ERROR_ACTIVITY_NO(3011,"活动不存在"),
    ERROR_ACTIVITY_PARTICIPATE(3012,"已参与该活动");



    public final Integer code;
    public final String msg;

    ResultEnum(Integer code, String msg) {
        this.code=code;
        this.msg=msg;
    }
}
